home *** CD-ROM | disk | FTP | other *** search
- Path: rowdy.lonestar.org!nemesis!hammy!not-for-mail
- From: gordon@hammy.lonestar.org (Gordon Burditt)
- Newsgroups: comp.lang.c
- Subject: Re: why doesn't atof work properly ?
- Date: 3 Feb 1996 17:04:31 -0600
- Organization: What organization?
- Message-ID: <4f0plv$95p@hammy.lonestar.org>
- References: <4f0ivh$3g7e@yuma.ACNS.ColoState.EDU>
- NNTP-Posting-Host: localhost.hammy.lonestar.org
-
- >I was reading from da.dat, making everything into a char string.
- >Then I used strtok to interpret the string, converting them into int or
- >double variables through atoi or atof. But atof doesn't seem to work
- >at all. Enclosed is the file, da.dat and output.
-
- If you want to use atof(), you need to include the header file
- for it, <stdlib.h>, or declare it properly yourself. Your
- program did neither.
-
- Gordon L. Burditt
- sneaky.lonestar.org!gordon
-
-